/*
 * DiariaHospedagem.java
 *
 * Created on October 12, 2007, 10:46 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package petstore.model;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Entity class DiariaHospedagem
 * 
 * @author Tom Hayden
 */
@Entity
@Table(name = "diaria_hospedagem")
@AttributeOverride(name="id", column=@Column(name="cddiariahosp"))
public class DiariaHospedagem extends BusinessObject {

    @Column(name = "vlrdiariahosp")
    private Double valorDiaria;

    @Column(name = "ativo")
    private boolean active;

    @ManyToOne
    @JoinColumn(name="cdporte")
    private Porte porte;
    
    /** Creates a new instance of DiariaHospedagem */
    public DiariaHospedagem() {
    }

    public Double getValorDiaria() {
        return valorDiaria;
    }

    public void setValorDiaria(Double valorDiaria) {
        this.valorDiaria = valorDiaria;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Porte getPorte() {
        return porte;
    }

    public void setPorte(Porte porte) {
        this.porte = porte;
    }

}
